<template>
  <div>
    <el-card class="box-card">
      <el-row :gutter="20" style="margin-top: 150px"
        ><h1 style="text-align: center">增加学生</h1>

        <el-col :span="8" :offset="8"
          ><el-form ref="form" :model="form" label-width="80px">
            <el-form-item label="姓名" class="item">
              <el-input v-model="form.name"></el-input>
            </el-form-item>

            <el-form-item label="出生日期">
              <el-date-picker
                type="date"
                placeholder="选择日期"
                v-model="form.date1"
                style="width: 250px"
              ></el-date-picker>
            </el-form-item>
            <el-form-item label="联系方式" class="item">
              <el-input v-model="form.name"></el-input>
            </el-form-item>

            <el-form-item label="性别">
              <el-radio-group v-model="form.resource">
                <el-radio label="男"></el-radio>
                <el-radio label="女"></el-radio>
              </el-radio-group>
            </el-form-item>

            <el-form-item>
              <el-button type="primary" @click="onSubmit">立即创建</el-button>
              <el-button>取消</el-button>
            </el-form-item>
          </el-form></el-col
        >
      </el-row>
    </el-card>
  </div>
</template>
<script>
import ElementUI from "element-ui";
export default {
  data() {
    return {
      form: {
        name: "",
        region: "",
        date1: "",
        date2: "",
        delivery: false,
        type: [],
        resource: "",
        desc: ""
      }
    };
  },
  methods: {
    onSubmit() {
      console.log("submit!");
    }
  }
};
</script>
<style scoped>
.box-card {
  height: 700px;
}
.el-form-item__label {
  color: red;
  font-size: 17px;
}
.el-col {
  border-radius: 4px;
}
.bg-purple-dark {
  background: #99a9bf;
}
.bg-purple {
  background: #d3dce6;
}
.bg-purple-light {
  background: #e5e9f2;
}
.grid-content {
  border-radius: 4px;
  min-height: 36px;
}
.row-bg {
  padding: 10px 0;
  background-color: #f9fafc;
}
</style>
